package com.ruoyi.tools.util.param;

import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class ParamsUtil {

    public static String ParamBack(Map<String,Object> m){
        StringBuffer str=new StringBuffer();
        for (String key : m.keySet()) {
            str.append(""+key+"="+m.get(key));
            str.append("&");
        }
        str.deleteCharAt(str.length() - 1);
        System.out.println(str);
        return str.toString();
    }
}
